package bb.lanxing.lib.devices.core.sync;

import android.os.Parcel;
import android.os.Parcelable;

public class FitDeviceFile implements Parcelable, DeviceFile {
    public static final Parcelable.Creator<DeviceFile> CREATOR = new Parcelable.Creator<DeviceFile>() {
        @Override
        public DeviceFile createFromParcel(Parcel parcel) {
            return new FitDeviceFile(parcel);
        }


        @Override
        public DeviceFile[] newArray(int i) {
            return new DeviceFile[i];
        }
    };
    public long distance;
    public long duration;
    public long id;
    public long localTimestamp;
    public String name;
    public String path;
    public long size;
    public long startTime;
    public int status;
    public long timestamp;
    public int version;

    @Override
    public int describeContents() {
        return 0;
    }

    protected FitDeviceFile(Parcel parcel) {
        this.id = parcel.readLong();
        this.startTime = parcel.readLong();
        this.name = parcel.readString();
        this.duration = parcel.readLong();
        this.size = parcel.readLong();
        this.timestamp = parcel.readLong();
        this.localTimestamp = parcel.readLong();
        this.distance = parcel.readLong();
        this.path = parcel.readString();
        this.version = parcel.readInt();
        this.status = parcel.readInt();
    }

    public FitDeviceFile() {
    }

    public int getStatus() {
        return this.status;
    }

    public void setStatus(int i) {
        this.status = i;
    }

    public int getVersion() {
        return this.version;
    }

    public void setVersion(int i) {
        this.version = i;
    }

    @Override
    public long getId() {
        return this.id;
    }

    public void setId(long j) {
        this.id = j;
    }

    public long getStartTime() {
        return this.startTime;
    }

    public void setStartTime(long j) {
        this.startTime = j;
    }

    @Override
    public String getName() {
        return this.name;
    }

    public void setName(String str) {
        this.name = str;
    }

    public long getDuration() {
        return this.duration;
    }

    public void setDuration(long j) {
        this.duration = j;
    }

    @Override
    public long getSize() {
        return this.size;
    }

    public void setSize(long j) {
        this.size = j;
    }

    public long getTimestamp() {
        return this.timestamp;
    }

    public void setTimestamp(long j) {
        this.timestamp = j;
    }

    public long getLocalTimestamp() {
        return this.localTimestamp;
    }

    public void setLocalTimestamp(long j) {
        this.localTimestamp = j;
    }

    public long getDistance() {
        return this.distance;
    }

    public void setDistance(long j) {
        this.distance = j;
    }

    @Override
    public String getPath() {
        return this.path;
    }

    public void setPath(String str) {
        this.path = str;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeLong(this.id);
        parcel.writeLong(this.startTime);
        parcel.writeString(this.name);
        parcel.writeLong(this.duration);
        parcel.writeLong(this.size);
        parcel.writeLong(this.timestamp);
        parcel.writeLong(this.localTimestamp);
        parcel.writeLong(this.distance);
        parcel.writeString(this.path);
        parcel.writeInt(this.version);
        parcel.writeInt(this.status);
    }
}
